package com.dev.security.mapper;

import com.dev.security.entity.Role;
import com.dev.security.entity.User;

import java.util.List;

/**
 * 用户Mapper
 *
 * @author yuboon
 * @version v1.0
 * @date 2020/04/04
 */
public interface UserMapper {

    public int insert(User user);

    public int update(User user);

    public int remove(int id);

    public List<User> selectList(User user);

    public List<Role> selectAssignRole(int userId);

    String selectPasswordByUsername(Object username);

    User selectByUsername(String username);

    int updatePass(int id,String newPass);
}
